<!--
  @author duanzuocai
  @since 2018/10/19 23:12
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<head th:include="common/common :: jscss">
    <title>模板组管理</title>
</head>
<body>
<div class="layui-fluid">

    <div class="layui-card">

        <div class="layui-split">&nbsp;</div>

        <form method="post" class="layui-form" id="queryForm" action="/msg/temp/group/list.action" lay-filter="zmn-query-filter">
            <div class="layui-form" th:include="message/group/_query :: query "></div>
        </form>

        <div class="layui-card-body">
            <div th:replace="message/group/_table::table"/>
            <script type="text/html" id="zmn-table-tool">
                <div class="layui-btn-container">
                    <div class="layui-btn-group">
                        <zmn th:if="${#authPermit.checkPermit('/msg/temp/group/updateStatus.action')}">
                            <button class="layui-btn layui-btn-sm" lay-event="start">启用</button>
                            <button class="layui-btn layui-btn-sm" lay-event="stop">停用</button>
                        </zmn>
                    </div>
                    <div class="layui-btn-group">
                        <zmn th:if="${#authPermit.checkPermit('/msg/temp/group/addEditView.action')}">
                            <button onclick="addTempGroup()" lay-text="新增" class="layui-btn layui-btn-sm layui-btn-primary">
                                <i class="layui-icon">新增</i>
                            </button>
                        </zmn>
                    </div>
                </div>
            </script>
        </div>

    </div>
</div>

</body>
</html>
<script type="text/javascript" th:inline="javascript">

    let json = {
        totalCount: [[${vo.totalCount}]],
        pageSize: [[${vo.pageSize}]],
        pageIndex: [[${vo.pageIndex}]]
    };

    layui.config({
        version: 20191021,
        base: "/static/lay/"
    }).extend({
        index: "lib/index",
        msg_template_group_list: "message/group/zmn.msg.template.group.list",
    }).use(['index', 'msg_template_group_list']);

</script>